package com.wdb.exchange.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.Gson;
import com.wdb.exchange.constant.EventEnum;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class User implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1590088143989308844L;
	public Integer code;
	public String message;
	
	public Map<String, Object> detail = new HashMap<String, Object>();
	
	public EventEnum event;

	@Override
	public String toString() {
		return new Gson().toJson(this);
	}
	
}
